# -*- coding: utf-8 -*-
# @Time    : 2025/6/17 22:10
# @Author  : XinHuang
# @Email   : SA24231052@mail.ustc.edu.cn
# @File    : atexit_try
# @Software: PyCharm
import atexit


@atexit.register#引发错误后也能运行的部分，可以在运行末尾关闭某些东西释放内存
def func():
    print('hello')

if __name__ == '__main__':
    1/0
    # func()